cc=g++
CFLAG= -std=c++17 -g
LFLAG= -lspdlog -lfmt -lgflags -pthread -letcd-cpp-api -lcpprest -lbrpc -lleveldb -lssl -lcrypto -lprotobuf
.PHONY: all
all: discovery registry
discovery : discovery.cc main.pb.cc
	$(cc) -o $@ $^ $(CFLAG) $(LFLAG)
registry : registry.cc main.pb.cc
	$(cc) -o $@ $^ $(CFLAG) $(LFLAG)

.PHONY:clean
clean:
	rm -f discovery registry